<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>404 - 页面未找到</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <script>
        // 保持与其他页面一致的Tailwind配置，确保视觉统一性
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#165DFF',
                        secondary: '#36CFC9',
                        neutral: '#F5F7FA',
                        dark: '#1D2129',
                        gray: {
                            100: '#F7F8FA',
                            200: '#E5E6EB',
                            300: '#C9CDD4',
                            400: '#86909C',
                            500: '#4E5969',
                            600: '#272E3B',
                        }
                    },
                    fontFamily: {
                        inter: ['Inter', 'system-ui', 'sans-serif'],
                    },
                    animation: {
                        'float': 'float 3s ease-in-out infinite',
                        'fade-in': 'fadeIn 0.8s ease-out forwards',
                    },
                    keyframes: {
                        float: {
                            '0%, 100%': { transform: 'translateY(0)' },
                            '50%': { transform: 'translateY(-10px)' },
                        },
                        fadeIn: {
                            '0%': { opacity: '0', transform: 'translateY(20px)' },
                            '100%': { opacity: '1', transform: 'translateY(0)' },
                        }
                    }
                }
            }
        }
    </script>
    <style type="text/tailwindcss">
        @layer utilities {
            .content-auto {
                content-visibility: auto;
            }
            .btn-hover {
                @apply hover:shadow-lg hover:-translate-y-0.5 transition-all duration-300;
            }
            .text-shadow {
                text-shadow: 0 2px 4px rgba(0,0,0,0.05);
            }
        }
    </style>
</head>
<body class="font-inter bg-neutral min-h-screen flex flex-col">
    <!-- 导航栏：与主页/登录/注册页保持一致，确保用户认知连贯 -->
    <header class="bg-white shadow-sm">
        <div class="container mx-auto px-4 sm:px-6 lg:px-8">
            <div class="flex justify-between items-center h-16">
                <!-- 网站Logo：点击可返回首页 -->
                <div class="flex items-center">
                    <a href="index.html" class="flex items-center space-x-2">
                        <span class="text-primary text-2xl"><i class="fa fa-connectdevelop"></i></span>
                        <span class="font-bold text-xl text-dark">石神的网页</span>
                    </a>
                </div>
                
                <!-- 空区域：保持布局对称 -->
                <div></div>
                
                <!-- 返回首页按钮：明确引导用户 -->
                <div class="flex items-center">
                    <a href="index.html" class="inline-flex items-center px-4 py-2 bg-primary text-white rounded-lg btn-hover">
                        <i class="fa fa-home mr-2"></i>
                        回到首页
                    </a>
                </div>
            </div>
        </div>
    </header>

    <!-- 主内容区：核心404信息，友好提示+导航指引 -->
    <main class="flex-grow flex flex-col items-center justify-center py-12 px-4 sm:px-6 lg:px-8 animate-fade-in">
        <div class="w-full max-w-4xl text-center">
            <!-- 404图标：轻松活泼的视觉元素，缓解用户焦虑 -->
            <div class="relative mb-8 animate-float">
                <div class="text-[12rem] font-bold text-primary/10 leading-none">404</div>
                <div class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2">
                    <i class="fa fa-compass text-primary text-6xl sm:text-8xl"></i>
                </div>
            </div>
            
            <!-- 文字提示：清晰、友好，避免技术化语言 -->
            <h1 class="text-[clamp(2rem,5vw,3rem)] font-bold text-dark mb-4 text-shadow">页面飞走啦～</h1>
            <p class="text-gray-500 text-lg sm:text-xl mb-10 max-w-2xl mx-auto">
                很抱歉，您访问的页面不存在、已被删除或暂时无法访问。<br>
                可能是链接错误，也可能是页面地址发生了变化。
            </p>
            
            <!-- 导航指引区：提供多种解决方案，减少用户流失 -->
            <div class="grid grid-cols-1 sm:grid-cols-3 gap-6 max-w-3xl mx-auto">
                <!-- 选项1：返回首页 -->
                <a href="index.html" class="flex flex-col items-center p-6 bg-white rounded-xl shadow-sm btn-hover">
                    <div class="w-14 h-14 bg-primary/10 text-primary rounded-full flex items-center justify-center mb-4">
                        <i class="fa fa-home text-2xl"></i>
                    </div>
                    <h3 class="font-medium text-dark text-lg mb-2">返回首页</h3>
                    <p class="text-gray-400 text-sm">回到网站主页面，重新开始浏览</p>
                </a>
                
                <!-- 选项2：联系客服 -->
                <a href="mailto:support@connect.com" class="flex flex-col items-center p-6 bg-white rounded-xl shadow-sm btn-hover">
                    <div class="w-14 h-14 bg-secondary/10 text-secondary rounded-full flex items-center justify-center mb-4">
                        <i class="fa fa-headphones text-2xl"></i>
                    </div>
                    <h3 class="font-medium text-dark text-lg mb-2">联系客服</h3>
                    <p class="text-gray-400 text-sm">向我们反馈问题，获取帮助</p>
                </a>
                
                <!-- 选项3：搜索内容 -->
                <div class="flex flex-col items-center p-6 bg-white rounded-xl shadow-sm">
                    <div class="w-14 h-14 bg-primary/10 text-primary rounded-full flex items-center justify-center mb-4">
                        <i class="fa fa-search text-2xl"></i>
                    </div>
                    <h3 class="font-medium text-dark text-lg mb-2">搜索内容</h3>
                    <!-- 简易搜索框：帮助用户快速找到目标内容 -->
                    <div class="relative w-full mt-2">
                        <input type="text" placeholder="输入关键词搜索..." 
                            class="w-full pl-10 pr-4 py-2 border border-gray-200 rounded-lg focus:border-primary focus:ring-2 focus:ring-primary/20 outline-none transition-all">
                        <i class="fa fa-search absolute left-3 top-1/2 -translate-y-1/2 text-gray-400"></i>
                    </div>
                </div>
            </div>
            
            <!-- 额外提示：常见问题引导 -->
            <div class="mt-12 text-gray-400 text-sm">
                <p class="mb-2">常见原因：</p>
                <ul class="flex flex-wrap justify-center gap-x-6 gap-y-2">
                    <li><i class="fa fa-angle-right text-primary mr-1"></i> 链接输入错误</li>
                    <li><i class="fa fa-angle-right text-primary mr-1"></i> 页面已被删除</li>
                    <li><i class="fa fa-angle-right text-primary mr-1"></i> 链接已过期</li>
                    <li><i class="fa fa-angle-right text-primary mr-1"></i> 服务器临时故障</li>
                </ul>
            </div>
        </div>
    </main>

    <!-- 页脚：与其他页面保持一致，确保品牌统一性 -->
    <footer class="bg-white border-t border-gray-200 py-6">
        <div class="container mx-auto px-4 sm:px-6 lg:px-8">
            <div class="flex flex-col md:flex-row justify-between items-center">
                <!-- 版权信息 -->
                <div class="text-center md:text-left text-gray-500 text-sm mb-4 md:mb-0">
                    &copy; 2023 Connect. 保留所有权利。
                </div>
                <!-- 辅助链接 -->
                <div class="flex space-x-6">
                    <a href="#" class="text-gray-400 hover:text-primary transition-colors text-sm">隐私政策</a>
                    <a href="#" class="text-gray-400 hover:text-primary transition-colors text-sm">服务条款</a>
                    <a href="mailto:support@connect.com" class="text-gray-400 hover:text-primary transition-colors text-sm">联系我们</a>
                </div>
            </div>
        </div>
    </footer>

    <!-- 简单交互脚本：增强体验（如搜索框回车事件） -->
    <script>
        // 搜索框回车触发搜索（实际项目中可对接搜索接口）
        const searchInput = document.querySelector('input[placeholder="输入关键词搜索..."]');
        if (searchInput) {
            searchInput.addEventListener('keydown', function(e) {
                if (e.key === 'Enter' && this.value.trim()) {
                    alert(`正在搜索: ${this.value}（实际项目中会跳转搜索结果页）`);
                }
            });
        }

        // 页面加载完成后，给所有链接添加淡入效果（可选增强）
        document.addEventListener('DOMContentLoaded', function() {
            const links = document.querySelectorAll('a');
            links.forEach(link => {
                link.classList.add('transition-all', 'duration-300');
            });
        });
    </script>
</body>
</html>